Skip to content

Conversation

@argl
Copy link
Contributor

@argl argl commented Sep 16, 2024

Description

Move the CLI shell script to a .js implementation, make it compatible with npx and move it to bin.

Motivation

The CLI command should be installable globally.

@argl argl requested review from a team and mdn-bot as code owners September 16, 2024 15:10
@argl argl changed the title Mp 1502 cli installation fix(cli): make the scan command npx compatible Sep 16, 2024
Copy link
Member

@LeoMcA LeoMcA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Tested locally, works for me, one tiny nit:

bin/scan.js Outdated
.name("observatory")
.description("CLI for the MDN HTTP Observatory")
.version("1.0.0");
const name = "mdn-http-observatory-scan";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps const NAME = as it's a constant?

@argl argl merged commit 6d66d0e into main Sep 16, 2024
@argl argl deleted the MP-1502-cli-installation branch September 16, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants